package ioperations;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("显示图书......");
        int currentsize=bookList.getUseSize();
        for(int i=0;i<currentsize;i++){
            Book book=bookList.getBooks(i);
            System.out.println(book);
            //Book book1=bookList【i】这是错误的示范
        }
    }
}
